const TokenKey = 'hzy-token'

export function getToken() {
  return localStorage.getItem(TokenKey)
}

export function setToken(token) {
  localStorage.setItem(TokenKey, token)
}

export function removeToken() {
  localStorage.removeItem(TokenKey)
}

export function saveInfo(key, val) {
  localStorage.setItem(key, val)
}

export function getCache(key) {
  return localStorage.getItem(key)
}
